package com.zzzy.doc.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 单位发文记录
 *
 * @author fc
 * @since 2024-09-09
 */
@Getter
@Setter
@TableName("doc_send_record")
@Schema(description = "单位发文记录")
public class DocSendRecord {

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "公文ID")
    @TableField("doc_id")
    private Long docId;

    @Schema(description = "发文用户ID")
    @TableField("send_user_id")
    private Long sendUserId;

    @Schema(description = "发文用户姓名")
    @TableField("send_user_name")
    private String sendUserName;

    @Schema(description = "发文时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("send_time")
    private LocalDateTime sendTime;
}
